#include <iostream>
using namespace std ;

int main (){
	//既定数组
	int s[10]={1,1,2,2,3,3,4,4,5,5} ;
	int a=0 ;
	
	for (int i=0; i<10; i++){
		if (s[a] != s[i]){
			s[a+1] = s[i] ;
			a++ ;
		}
	}

	for (int i=0; i<a+1; i++)
		cout << s[i] << " " ;

	return 0; 
}
